package br.com.character.flex.chorm.core.sql
{
    [Bindable]
    public class Literal extends Value implements ILiteral
    {
        public function Literal(v:Object)
        {
            super(v);
        }
        
        override public function toSQL():String {
            var result:String = value.toString();
            if(value is String){
                result = "'" + value + "'";
            } 
            return result;
        }
    }
}